//
//  WebViewController.swift
//  PropertyCommunity
//
//  Created by benwang on 2021/7/5.
//

import UIKit
import WebKit

/// 网页
class WebViewController: UIViewController {

  var webView: WKWebView!

  override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    opacityNavigationBar(color: .designKit.background)
  }

  override func viewDidLoad() {
    super.viewDidLoad()

    // Do any additional setup after loading the view.
    webView = WKWebView(frame: .zero)
    webView.load(URLRequest(url: URL(string: "https://www.baidu.com")!))
    view.addSubview(webView)

    webView.snp.makeConstraints { make in
      make.edges.equalToSuperview()
    }
  }


  /*
   // MARK: - Navigation

   // In a storyboard-based application, you will often want to do a little preparation before navigation
   override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
   // Get the new view controller using segue.destination.
   // Pass the selected object to the new view controller.
   }
   */

}
